package com.rr.graphql.input;

import com.rr.dto.Department;
import lombok.Data;

import java.util.UUID;

/**
 * @author RR
 * @date 2023/6/11 17:23
 */
@Data
public class DepartmentInput {

    private String name;

    public Department to() {
        Department Department = new Department();
        Department.setId(UUID.randomUUID().toString());
        Department.setName(name);
        return Department;
    }

}
